
package game.manager {
	import flash.display.Stage;
	
	import utils.Singleton;
	
	/**
	 * StageManager
	 *
	 * @author chris
	 *
	 * Apr 13, 2013
	 */
	public class StageManager extends Singleton {
		
		public var stage:Stage;	//当前注册舞台
		public var screenWith:Number;
		public var screenHeight:Number;
		
		public function StageManager()
		{
			super();
		}
		
		public static function get inst():StageManager {
			return Singleton.getInstanceOrCreate(StageManager) as StageManager;
		}
		
		public function registe(stage:Stage,sw:Number=1000,sh:Number=720):void {
			this.stage = stage;
			this.screenWith = this.stage.stageWidth;
			this.screenHeight = this.stage.stageHeight;
		}
	}
}